# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 6
_modified_time = 1317989929.008359
_template_filename=u'/home/wolfking/workspace/tornado/Soy/application/views/layouts/htmlPage.html'
_template_uri=u'/layouts/htmlPage.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from whirlwind.view.filters import Filters, Cycler
_exports = ['jquery', 'page_title', 'css', 'scripts']


def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        self = context.get('self', UNDEFINED)
        next = context.get('next', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 2
        __M_writer(u'\n\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.org/1999/xhtml"><head>\n<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n')
        # SOURCE LINE 7
        __M_writer(u'\n<title>')
        # SOURCE LINE 8
        __M_writer(unicode(self.page_title()))
        __M_writer(u'</title>\n')
        # SOURCE LINE 9
        __M_writer(unicode(self.css()))
        __M_writer(u'\n')
        # SOURCE LINE 10
        __M_writer(unicode(self.jquery()))
        __M_writer(u'\n')
        # SOURCE LINE 26
        __M_writer(u'\n</head>\n<body>\n    <div id="container">\n\t')
        # SOURCE LINE 30
        __M_writer(unicode(next.body()))
        __M_writer(u'\n    </div>\n\t')
        # SOURCE LINE 32
        __M_writer(unicode(self.scripts()))
        __M_writer(u'\n\t')
        # SOURCE LINE 34
        __M_writer(u'\n        <script type="text/javascript">\n        $().ready(function(){\n            ')
        # SOURCE LINE 37
        __M_writer(unicode(next.user_script()))
        __M_writer(u'\n            ')
        # SOURCE LINE 38
        __M_writer(unicode(next.jquery_script()))
        __M_writer(u'\n        });\n        </script>\n</body></html>\n')
        # SOURCE LINE 47
        __M_writer(u'\n\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_jquery(context):
    context.caller_stack._push_frame()
    try:
        __M_writer = context.writer()
        # SOURCE LINE 42
        __M_writer(u'\n<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>\n<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>\n<script type="text/javascript" src="/static/js/application.js"></script> \n<script type="text/javascript" src="/static/js/whirlwind.js"></script>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_page_title(context):
    context.caller_stack._push_frame()
    try:
        _ = context.get('_', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 7
        __M_writer(_(unicode("Jiang You" )))
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_css(context):
    context.caller_stack._push_frame()
    try:
        __M_writer = context.writer()
        # SOURCE LINE 11
        __M_writer(u'\n<link rel="stylesheet" href="/static/css/soy.css" type="text/css">\n<link rel="stylesheet" href="/static/css/message.css" type="text/css">\n<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/smoothness/jquery-ui.css" type="text/css">\n\n<!--[if lte IE 6]>\n<style type="text/css">\n#container.nosidebar {\nwidth: 950px !important;\n}\n#page #lhs{\nzoom: 1;\n}\n</style>\n<![endif]-->\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_scripts(context):
    context.caller_stack._push_frame()
    try:
        __M_writer = context.writer()
        # SOURCE LINE 33
        __M_writer(u'\n        ')
        return ''
    finally:
        context.caller_stack._pop_frame()


